import request from "@/utils/request";

// 获取比赛信息
export function getMatches(match_id) {
  return request({
    url: `/api/matches/${match_id}`,
    method: "get",
  });
}

// 解析比赛信息
export function requestMatches(match_id) {
  return request({
    url: `/api/request/${match_id}`,
    method: "post",
  });
}

// 获取分析结果
export function getRequestResult(jobId){
  return request({
    url: `/api/request/${jobId}`,
    method: "get",
  });
}
